﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vit.Web.Models;

namespace Vit.Workflow.Areas.Workflow.Models
{
    public interface IWorkflowProvider<T>
    {
        IQueryable<T> ListTargets(User user);
        Workflow CreateWorkflow(T target);
        Workflow GetWorkflow(T target);
        IEnumerable<NavigationItem> GetOperations(Workflow workflow);
        string DoOperation(Workflow target, User user, string operation, params object[] paras);

    }
}
